package item;
import item.ShoppingCartItem;

public class PurchaseItem extends Item {
	private int		receiptId;
	private int		quantity;
		
	public PurchaseItem(int receiptId, int quantity, String upc, String title, Type type, Category category, String company, int year, float sellPrice) {
		super(upc, title, type, category, company, year, sellPrice);
		
		this.receiptId = receiptId;
		this.quantity = quantity;
		
	}
	
	public PurchaseItem(int receiptId, ShoppingCartItem shoppingCartItem)
	{
		super(shoppingCartItem.getUpc(), shoppingCartItem.getTitle(), shoppingCartItem.getType(), shoppingCartItem.getCategory(), 
				shoppingCartItem.getCompany(), shoppingCartItem.getYear(), shoppingCartItem.getSellPrice());
		
		this.receiptId = receiptId;
		this.quantity = shoppingCartItem.getQuantity();
	}

	public int getReceiptId()
	{
		return receiptId;
	}
	
	public int getQuantity()
	{
		return quantity;
	}
}
